<html>
<head><meta charset="utf-8"><title>rustup install missing tool in CI · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20install.20missing.20tool.20in.20CI.html">rustup install missing tool in CI</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="218246045"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20install%20missing%20tool%20in%20CI/near/218246045" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20install.20missing.20tool.20in.20CI.html#218246045">(Nov 30 2020 at 03:48)</a>:</h4>
<p>How can I install a missing tool in rustup without manually searching through nightlies? I use nightly rustfmt for a project and I want to check it in CI, but <code>rustup toolchain install nightly &amp;&amp; rustup +nightly component add rustfmt</code> doesn't work when rustfmt missed a nightly because of broken toolstate. How can I solve this?</p>



<a name="218247380"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20install%20missing%20tool%20in%20CI/near/218247380" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20install.20missing.20tool.20in.20CI.html#218247380">(Nov 30 2020 at 04:18)</a>:</h4>
<p>This fixed it:</p>
<div class="codehilite" data-code-language="Bash"><pre><span></span><code>rustup toolchain install nightly --component rustfmt
</code></pre></div>
<p>Hope that's useful to someone else!</p>



<a name="218247389"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20install%20missing%20tool%20in%20CI/near/218247389" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20install.20missing.20tool.20in.20CI.html#218247389">(Nov 30 2020 at 04:18)</a>:</h4>
<p>It's shorter too!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>